﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MenDianReg.aspx.cs" Inherits="MenDianReg" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Expires" CONTENT="0"> 
<meta http-equiv="Cache-Control" CONTENT="no-cache"> 
<meta http-equiv="Pragma" CONTENT="no-cache"> 
<title>礼券提货</title>
<style type="text/css">
<!--
body{
	background:#F7F7F7;
	margin:0 auto;	
	}
#box {
position:absolute;
top:50%;
left:50%;
margin:-150px 0 0 -300px;
width:600px;
height:300px;
}
table,tr,td{
	font-size:20px;
	color:#666666;
	font-weight:bold;
	font:"微软雅黑",Verdana, Arial, Helvetica, sans-serif;
	}

.b1{
	width:400px;
	height:38px;
	border:2px solid #ccc;
	line-height:30px;
	font-size:20px;
	}
.b3{
	width:60px;
	height:25px;
	border:1px solid #ccc;
	line-height:25px;
	font-size:14px;
	}
.b2{
	width:129px;
	height:37px;
	background:url(images/bt_Login.jpg);
	border:0;
	}
.bt_tj{
	width:60px;
	height:40px;
	font-size:18px;
	}
-->
</style>
<link href="css/forms.css" rel="stylesheet" type="text/css" />
<script type="text/JavaScript">
function stop(){
	return false;
}
document.oncontextmenu=stop;
var	inputtimeSpan = 0;
function myBarCodeChanged(){
	var editCtrl = document.getElementById('txtTiaoMaEdit');
	var bResult = true;
	var inputText = editCtrl.value;
    if (inputText.length < 12) {
		if(inputText.length == 0 || inputtimeSpan == 0){
			var d = new Date();
			inputtimeSpan = d.getTime();
		}
		else {
			var d = new Date();
			var tt = d.getTime();
			if(tt - inputtimeSpan > 700){
				inputtimeSpan = 0;
				editCtrl.value = "";
				bResult = false;
			}
		}
	}
	else if(inputText.length > 15){
		inputtimeSpan = 0;
		editCtrl.value = "";
		bResult = false;
	}
    return  bResult;
}
</script>
</head>

<body>

<form id="mdregform" runat="server" defaultbutton="Button1" defaultfocus="txtTiaoMaEdit">
	<asp:Label ID="operaterLabel" runat="server" Visible="False" Width="65px"></asp:Label>
	<div id="box">
	  <table id="commit">
		<tr>
			<td height="40" align="right">条形码：      </td>
			<td>
			<asp:TextBox ID="txtTiaoMaEdit" runat="server" class="b1" onpaste="return false;" 
				  onkeydown="return myBarCodeChanged();" AutoCompleteType="Disabled"></asp:TextBox>
			<asp:Button ID="Button1" runat="server" Text="提交" onclick="Button1_Click" class="bt_tj" />
			</td>
	</tr>
	</table>
   <p>&nbsp;</p>
  <table width="600">
  <tr>
		<td align="center" height="40"><asp:Label ID="tiaoma" runat="server"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="flowInfo" runat="server" ></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="ariseTime" runat="server" ></asp:Label></td> 
  </tr>  
  <tr>
		<td align="center" height="40"><asp:Label ID="mdAddress" runat="server" ></asp:Label></td>
  </tr>
</table>
</div>
</form>
</body>
</html>
